// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PUR_PURCHASE_ARRIVED
// * CreateDate    : 2012/3/26 18:33:59
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/26 18:33:59
// * LastChanger   : 2012/3/26 18:33:59
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class PurPurchaseArrivedTable : TableInfo
    {
        public const string C_TableName = "PUR_PURCHASE_ARRIVED";

        public const string C_ARRIVED_ID = "ARRIVED_ID";
        public const string C_ARRIVED_CODE = "ARRIVED_CODE";
        public const string C_ARRIVED_DATE = "ARRIVED_DATE";
        public const string C_CREATED_DATE = "CREATED_DATE";
        public const string C_CREATED_BY = "CREATED_BY";
        public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
        public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
        public const string C_REMARK = "REMARK";
        public const string C_IS_QUALITYCHECKED = "IS_QUALITYCHECKED";

        public PurPurchaseArrivedTable()
        {
            _tableName = "PUR_PURCHASE_ARRIVED";
        }

        protected static PurPurchaseArrivedTable _current;
        public static PurPurchaseArrivedTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new PurPurchaseArrivedTable();

            _current.Add(C_ARRIVED_ID, new ColumnInfo(C_ARRIVED_ID, "ArrivedId", true, typeof(string)));
            _current.Add(C_ARRIVED_CODE, new ColumnInfo(C_ARRIVED_CODE, "ArrivedCode", false, typeof(string)));
            _current.Add(C_ARRIVED_DATE, new ColumnInfo(C_ARRIVED_DATE, "ArrivedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE, "CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY, "CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE, "LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY, "LastModifiedBy", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_IS_QUALITYCHECKED, new ColumnInfo(C_IS_QUALITYCHECKED, "IsQualitychecked", false, typeof(int)));

        }

        public ColumnInfo ARRIVED_ID
        {
            get { return this[C_ARRIVED_ID]; }
        }

        public ColumnInfo ARRIVED_CODE
        {
            get { return this[C_ARRIVED_CODE]; }
        }

        public ColumnInfo ARRIVED_DATE
        {
            get { return this[C_ARRIVED_DATE]; }
        }

        public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }

        public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }

        public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }

        public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo IS_QUALITYCHECKED
        {
            get { return this[C_IS_QUALITYCHECKED]; }
        }



    }
}

